<?php 
	$PHPFoxEngine->db_address=$_POST['address'];
	$PHPFoxEngine->db_login=$_POST['login'];
	$PHPFoxEngine->db_pass=$_POST['pass'];
	$PHPFoxEngine->db_base=$_POST['base'];
	$PHPFoxEngine->database = new Bd($PHPFoxEngine->db_address,$PHPFoxEngine->db_login,$PHPFoxEngine->db_pass,$PHPFoxEngine->db_base);
	echo ($PHPFoxEngine->saveIniConfig())? '<dbresult>1</dbresult>':'<dbresult>0</dbresult>';
?>